package com.ny.demo508;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
public class Test {
    public static void main(String[] args) throws IOException{
        String data = "劳动节快乐";
        FileOutputStream fileOutputStream = new FileOutputStream("1.html");
        byte []bytes = data.getBytes();
        fileOutputStream.write(bytes);

    }
}
